var arr=null;
// var list=document.getElementById('list');
onload=function getpic(){
	$.get("http://39.105.192.164:9090/apitest/goodslist"," ",function(data){
		arr=data.data.list;
		
		render(arr);
		
		
		
	})
	
}
function render(arr){
	for(let i=0;i<arr.length;i++){
		
		str=`
		<div>
		<li><a href="splb2.html?id=${arr[i]["id"]}"><img src="${arr[i]["pic"]}"></a></li>
		<li>${arr[i]["id"]}</li>
		<li>${arr[i]["name"]}</li>
		
		<li>${arr[i]["price"]}</li>
		</div>
		`
		$('.list').append(str);
		
		
	}
}